package classes;

import java.util.ArrayList;
import java.util.Date;

public class Sujet {
	private int _idSujet;
	private Date _datePosted;
	private User _userCreated;
	private String _name;
	private ArrayList<Reponse> _listeReponses;
	
	
	public Sujet (int idSujet, Date datePosted, User userCreated, String name, ArrayList<Reponse> listeReponses){
		_idSujet = idSujet;
		_datePosted = datePosted;
		_userCreated = userCreated;
		_name = name;
		_listeReponses = listeReponses;
	}
	
	public Date getDatePosted(){
		return _datePosted;
	}
	
	public User getUserCreated(){
		return _userCreated;
	}
	
	public String getName(){
		return _name;
	}
	
	public ArrayList<Reponse> getListeReponses(){
		return _listeReponses;
	}
	
	public void addReponse(Reponse reponse){
		_listeReponses.add(reponse);
	}
}
